package com.cx.afc_android.utils;

/**
 * Created by chenxiang on 2019/10/10.
 */

public class TypeTranslation {

    public static String operationType(String no) {
        String str;
        switch (no) {
            case "1":
                str = "双侧睾丸切除术";
                break;
            case "2":
                str = "根治性前列腺切除术";
                break;
            case "3":
                str = "盆腔淋巴结清扫";
                break;
            case "4":
                str = "扩大根治性前列腺切除术";
                break;
            case "5":
                str = "TRUP经尿道前列腺切除术";
                break;
            default:
                str = "未知手术";
                break;
        }
        return str;
    }

    public static  String operationTypePro(String str){
        String returnStr = "";
        String temp[] = str.split(",");
        for (int i = 0;i < temp.length;i++){
            if(i == 0){
                returnStr = operationType(temp[i]);
            }else{
                returnStr = returnStr + "," + operationType(temp[i]);
            }
        }

        return returnStr;
    }

    public static  String varToExtent(int standard,int var){
        if (standard == var)
            return var + "-";
        if (standard > var)
            return var + "↓";
        if (standard < var)
            return var + "↑";
        return null;
    }
}
